var topic = {}

topic.togglePanel = function (id) {
	topics = $('#topic-panel-'+id);
	topics.hover(function(){}, function(){topics.animate({width: '0px'});});
	
	if(topics.css("width") == '0px') {
		topics.animate({display: 'visible', width: '300px'});
	} else if(topics.css("width") == '300px') {
		topics.animate({width: '0px'});
	}
}